import request from '@/utils/request'

export function loadAll(data) {
	return request({
		url: '/department',
		method: 'post',
		data
	})
}

export function loadAllDept() {
	return request({
		url: '/department',
		method: 'get',
	})
}

export function update(data) {
	return request({
		url: '/department',
		method: 'put',
		data
	})
}

export function delDept(data) {
	return request({
		url: '/department/'+data,
		method: 'delete',
	})
}

export function delDepts(data) {
	return request({
		url: '/department/delMany',
		method: 'delete',
		data
	})
}


export function loadAllEmp() {
	return request({
		url: '/employee',
		method: 'get',
	})
}
